package com.lyy.king.common.core.constant;

/**
 * @BelongsProject: springcloud-learning
 * @BelongsPackage: com.cdx.common.constant
 * @Author: cdx
 * @CreateTime: 2022-06-04  20:14
 * @Description: Token的Key常量
 * @Version: 1.0
 */
public class TokenConstants {
    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";


    /**
     * redis token key
     */
    public final static String REDIS_KEY = "login_token:";

    /**
     * 获取缓存中的 Key
     * @param token
     * @return
     */
    public static String getExpireTokenCacheKey(String token){
        return REDIS_KEY + token;
    }



}
